package com.cm.structural.decorator;

/**
 * 抽象装饰手机卡业务
 * @author cm.g
 * @date 2023/9/9 16:58
 */
public class SimBusinessDecorator implements SimCard{

    /**
     * 以组合的方式来获取具体构建类
     */
    private final SimCard simCard;
    /**
     * 构造方法示例化具体构建对象
     *
     * @param simCard 抽象构建
     */
    public SimBusinessDecorator(SimCard simCard) {
        this.simCard = simCard;
    }

    @Override
    public void addAdditionalBusiness() {
        simCard.addAdditionalBusiness();
    }
}
